const { env } = require('./env')
const UPLOAD_PATH = env === 'dev' ? '/Users/wanko/book/upload-ebook' : '';

const UPLOAD_URL = env === 'dev' ? 'http://localhost:8089/upload-ebook' : '';

module.exports = {
  CODE_ERROR: -1,
    CODE_TOKEN_EXPIRED: -2,
    CODE_SUCCESS: 0,
    debug: true,
    PWD_SALT: 'wanko',
    PRIVATE_KEY: 'wanko',
    JWT_EXPIRED: '1d',
    CODE_TOKEN_EXPIRED: 30007,
    UPLOAD_PATH,
    UPLOAD_URL,
    MIME_TYPE_EPUB: 'application/epub+zip'
}